package com.twu.biblioteca.command;


import com.twu.biblioteca.Library;

public class ShowMemberDetailCommand implements Command {

    public static final String MEMBER_TIP = "Please talk to a Librarian. Thank you.";

    @Override
    public void execute(Library library) throws Exception {
        if (null!= Library.currentUser) {
            library.showMessage(Library.currentUser.toString());
        } else {
            library.showMessage(MEMBER_TIP);
        }
    }

}
